package com.it.travel.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName("t_permission")
public class Permission {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String permissionPath;
    private String permissionCode;  // 权限码
    private String permissionName; // 权限名字
    private Long createTime;
    private Long updateTime;
    private Integer parentId;
    @TableLogic
    private Integer isDeleted;
    @TableField(exist = false)
    private List<Permission> children;
    private String icon;

}
